import request from './network.js'
/** */

// 热门品牌
export function HomeBrandAndCarType(prams, header) {
    return request({
        type:'sc',
        url:'/car/getHomeBrandAndCarType',
        headers:header,
        method:'POST'
    })
}

// 注册商城用户
export function register(prams, header) {
    return request({
        type:'sc',
        url:'/shopUser/register',
        headers:header,
        method:'POST',
        data:{"data":prams}
    })
}

// 首页商品分类列表
export function getListgoodsType(prams, header) {
    return request({
        type:'sc',
        url:'/goodsType/getListgoodsType',
        headers:header,
        method:'POST'
    })
}

// 获取车系数据（调用接口验证商城的token是否失效）
export function getCarSeriesList(prams, header) {
  return request({
    url: '/car/getCarSeriesList',
    headers: header,
    method: 'POST',
    data: {"data": prams}
  })
}

// 获取热门城市
export function getHotCity(header) {
  return request({
    type:'sc',
    url: '/area/getHotCityList',
    headers: header
  })
}

// 获取省数据
export function getProvinceList(header) {
  return request({
    type:'sc',
    url: '/area/getProvinceList',
    headers: header
  })
}

// 获取市数据
export function getCityList(prams, header) {
  return request({
    type:'sc',
    url: '/area/getCityList',
    headers: {'content-type': 'application/x-www-form-urlencoded'},
    method: 'POST',
    data: {"data": prams}
  })
}